package business.report.impl;

import business.report.DrivingOperationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.DrivingOperation;
import report.domain.DrivingOperationCriteria;
import report.mapper.DrivingOperationMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "drivingOperationService")
public class DrivingOperationServiceImpl implements DrivingOperationService{
    @Autowired
    DrivingOperationMapper drivingOperationMapper;
    @Override
    public List<DrivingOperation> getDrivingOperation() {
        DrivingOperationCriteria criteria = new DrivingOperationCriteria();
        criteria.createCriteria().getAllCriteria();
        return drivingOperationMapper.selectByExample(criteria);
    }
}
